# 有一个长阶梯，若每步上2阶，最后剩1阶；若每步上2阶，最后剩1阶；若每步上3阶，最后剩2阶；若每步上5阶，最后剩4阶；
# 若每步上6阶，最后剩5阶；只有每步上7阶，最后刚好一阶也不剩


def func():
    num = 7
    x = 1
    while num <= 100:
        if (num % 2 == 1) and (num % 3 == 2) and (num % 5 == 4) and (num % 6 == 5):
            print(num)
            return
        else:
            x += 1
            num = 7 * x
    print("在0-100的范围内没有符合要求的数")


if __name__ == "__main__":
    func()